package com.xwaf.platform.system.provider.serviceimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xwaf.platform.common.mail.MailService;
import com.xwaf.platform.common.api.message.MailDto;
import com.xwaf.platform.system.api.service.SpringMailService;

@Service(value = "springMailService")
public class SpringMailServiceImpl implements SpringMailService {

	@Autowired
	MailService mailService;

	@Override
	public void sendSimpleTextMail(MailDto mail) throws Exception {
		mailService.sendSimpleTextMail(mail);
	}

	@Override
	public void sendSimpleMail(MailDto mail) throws Exception {
		mailService.sendSimpleMail(mail);
	}

	@Override
	public void sendMimeMail(MailDto mail) throws Exception {
		mailService.sendMimeMail(mail);
	}
}
